package com.bwie.es;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * @Author: lrz
 * @Date: 2024/10/31 18:00
 * @Description:
 **/
@Data
@Document(indexName = "es_shop",shards = 1,replicas = 0)
public class EsShop implements Serializable {
    @Id
    @Field(type = FieldType.Keyword)
    private Integer id;
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String txm;
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String name;
    @Field(type = FieldType.Keyword)
    private String dw;
    @Field(type = FieldType.Integer)
    private Integer plId;
    @Field(type = FieldType.Integer)
    private Integer pds;
    @Field(type = FieldType.Integer)
    private Integer zss;
    @Field(type = FieldType.Integer)
    private Integer cys;
    @Field(type = FieldType.Double)
    private Double jhPrice;
    @Field(type = FieldType.Double)
    private Double lsPrice;
}
